package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.EducationProtectiveEquipmentRecordDao;
import com.site.wisdom_construction.entity.personnelModule.EducationProtectiveEquipmentRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/4/22
 * @Description
 */
@Service
public class EducationProtectiveEquipmentRecordService implements EducationProtectiveEquipmentRecordDao {
    @Autowired
    private EducationProtectiveEquipmentRecordDao educationProtectiveEquipmentRecordDao;

    @Override
    public int insertEducationProtectiveEquipmentRecord(Map map) {
        return educationProtectiveEquipmentRecordDao.insertEducationProtectiveEquipmentRecord(map);
    }

    @Override
    public int deleteEducationProtectiveEquipmentRecord(Map map) {
        return educationProtectiveEquipmentRecordDao.deleteEducationProtectiveEquipmentRecord(map);
    }

    @Override
    public int updateEducationProtectiveEquipmentRecord(Map map) {
        return educationProtectiveEquipmentRecordDao.updateEducationProtectiveEquipmentRecord(map);
    }

    @Override
    public List<EducationProtectiveEquipmentRecord> findEducationProtectiveEquipmentRecordByPage(Map map) {
        return educationProtectiveEquipmentRecordDao.findEducationProtectiveEquipmentRecordByPage(map);
    }

    @Override
    public long Total(Map map) {
        return educationProtectiveEquipmentRecordDao.Total(map);
    }

    @Override
    public EducationProtectiveEquipmentRecord findEducationProtectiveEquipmentRecordById(Map map) {
        return educationProtectiveEquipmentRecordDao.findEducationProtectiveEquipmentRecordById(map);
    }

    @Override
    public List<EducationProtectiveEquipmentRecord> findEducationProtectiveEquipmentRecordByWorkerCard(Map map) {
        return educationProtectiveEquipmentRecordDao.findEducationProtectiveEquipmentRecordByWorkerCard(map);
    }

    @Override
    public List<EducationProtectiveEquipmentRecord> findEducationProtectiveEquipmentRecordByManagerialId(Map map) {
        return educationProtectiveEquipmentRecordDao.findEducationProtectiveEquipmentRecordByManagerialId(map);
    }

    @Override
    public long TotalByManagerialId(Map map) {
        return educationProtectiveEquipmentRecordDao.TotalByManagerialId(map);
    }
}
